using System;
using System.Data;
using System.Data.SqlClient;
using DTN.Core.Utilities;
namespace com.dtn.deals
{
    public class tbl_AreaInfo
    {
        private int iD;
        public int ID
        {
            get { return iD; }
            set { iD = value; }
        }

        private int _cityId;
        public int cityId
        {
            get { return _cityId; }
            set { _cityId = value; }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private DateTime _cDate;
        public DateTime cDate
        {
            get { return _cDate; }
            set { _cDate = value; }
        }

        public tbl_AreaInfo()
        {
        }
        public tbl_AreaInfo(DataRow info)
        {
            iD = ConvertUtility.ToInt32(info["ID"]);
            _cityId = ConvertUtility.ToInt32(info["cityId"]);
            name = ConvertUtility.ToString(info["Name"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
        }
        public tbl_AreaInfo(DataRowView info)
        {
            iD = ConvertUtility.ToInt32(info["ID"]);
            _cityId = ConvertUtility.ToInt32(info["cityId"]);
            name = ConvertUtility.ToString(info["Name"]);
            _cDate = ConvertUtility.ToDateTime(info["cDate"]);
        }
        public tbl_AreaInfo(SqlDataReader dr)
        {
            iD = ConvertUtility.ToInt32(dr["ID"]);
            _cityId = ConvertUtility.ToInt32(dr["cityId"]);
            name = ConvertUtility.ToString(dr["Name"]);
            _cDate = ConvertUtility.ToDateTime(dr["cDate"]);
        }
    }
}

